/**  
 * @Title: UserMapper.java  
 * @Package com.blog4java.mybatis.example.mapper  
 * @Description: TODO(用一句话描述该文件做什么)  
 * @author suyuhao  
 * @date 2025-06-06 04:02:50   
 */
package com.blog4java.mybatis.example.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.blog4java.mybatis.example.entity.EmpEntity;
import com.blog4java.mybatis.example.entity.UserEntity;
import com.blog4java.mybatis.example.query.EmpQuery;
import com.blog4java.mybatis.example.query.UserQuery;

public interface UserMapper {
   @Select.List({
	   @Select(value = "select * from user"),
	   @Select(value = "select id,name,create_date as create_time from t_user",databaseId="mysql")
   })
   List<UserEntity> getUserPageable(UserQuery query);
   
   @Select(value = "select * from emp",databaseId="oracle")
   List<EmpEntity> getEmpPageable(EmpQuery query);
}
